API Documentation
InstancingPass.h
1 // InstancingPass.h
3 //
5 
6 namespace nkGraphics
7 {
14  class DLL_GRAPHICS_EXPORT InstancingPass : public Pass
15  {
16  public :
17 
18  // Getters
22  Mesh* getToRender () const ;
26  unsigned int getInstanceNumber () const ;
30  Shader* getShader () const ;
34  Camera* getRenderCam () const ;
38  Camera* getCullingCam () const ;
42  Camera* getLodCam () const ;
55 
56  // Setters
62  virtual void setToRender (Mesh* object) ;
68  void setInstanceNumber (unsigned int value) ;
74  virtual void setShader (Shader* value) ;
80  void setRenderCam (Camera* value) ;
86  void setCullingCam (Camera* value) ;
92  void setLodCam (Camera* value) ;
98  virtual void setBlendState (BlendState* holder) ;
104  virtual void setRasterState (RasterState* holder) ;
110  virtual void setDepthStencilState (DepthStencilState* holder) ;
111 
117  virtual void exportClassToTree (nkExport::Node* rootNode) override ;
123  virtual void importClassFromTree (nkExport::Node* rootNode) override ;
124  } ;
125 }
nkGraphics::InstancingPass
A pass doing an instanced draw, during which one mesh is drawn X times, in one go.
Definition: InstancingPass.h:15
nkGraphics::InstancingPass::getDepthStencilState
DepthStencilState * getDepthStencilState() const
nkGraphics::Camera
Offers all controls to model a camera.
Definition: Camera.h:12
nkGraphics::InstancingPass::setCullingCam
void setCullingCam(Camera *value)
nkGraphics::InstancingPass::getRenderCam
Camera * getRenderCam() const
nkGraphics::InstancingPass::setToRender
virtual void setToRender(Mesh *object)
nkGraphics::InstancingPass::getInstanceNumber
unsigned int getInstanceNumber() const
nkGraphics::InstancingPass::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkGraphics::InstancingPass::setDepthStencilState
virtual void setDepthStencilState(DepthStencilState *holder)
nkGraphics::InstancingPass::setShader
virtual void setShader(Shader *value)
nkGraphics::Shader
A shader class, feeding data to a Program.
Definition: Shader.h:14
nkGraphics::InstancingPass::setRenderCam
void setRenderCam(Camera *value)
nkGraphics::InstancingPass::getShader
Shader * getShader() const
nkGraphics::InstancingPass::getToRender
Mesh * getToRender() const
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkGraphics::InstancingPass::setLodCam
void setLodCam(Camera *value)
nkGraphics::InstancingPass::setBlendState
virtual void setBlendState(BlendState *holder)
nkGraphics::Pass
The base for a pass within a TargetOperations.
Definition: Pass.h:15
nkGraphics::DepthStencilState
Holds information about a depth and stencil state used for rendering.
Definition: DepthStencilState.h:12
nkGraphics::BlendState
Holds all information about the blend operations to use when rendering.
Definition: BlendState.h:12
nkGraphics::InstancingPass::getBlendState
BlendState * getBlendState() const
nkGraphics::InstancingPass::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkGraphics::InstancingPass::getCullingCam
Camera * getCullingCam() const
nkGraphics::InstancingPass::setRasterState
virtual void setRasterState(RasterState *holder)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::InstancingPass::setInstanceNumber
void setInstanceNumber(unsigned int value)
nkGraphics::InstancingPass::getRasterState
RasterState * getRasterState() const
nkGraphics::InstancingPass::getLodCam
Camera * getLodCam() const
nkGraphics::Mesh
Holds information about a mesh. Used as a basis to render 3d models.
Definition: Mesh.h:15
nkGraphics::RasterState
Holds information about a raster state.
Definition: RasterState.h:14